﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Admin.master" AutoEventWireup="true" CodeFile="AddPolicyOnEmp.aspx.cs" Inherits="AppCode_Admin_AddPolicyOnEmp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
    <div style="margin: 0 auto; width: 700px; margin-left: 300px;">
        <p style="font-size: 19px; font-weight: bold; margin-top: 40px; margin-bottom: 10px; margin-left: 70px;">Add Policy On Employee</p>
        <table style="border-spacing:30px 10px">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="UserName"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtUser" runat="server" Width="175px" Enabled="False"></asp:TextBox>
                    
                </td>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="User name is required" ForeColor="#CC0000"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Company Id"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtCompanyId" runat="server" Width="175px" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Company is required" ForeColor="#CC0000"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label11" runat="server" Text="Policy Name"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtPolicyName" runat="server" Width="175px" Enabled="False"></asp:TextBox> </td>
                <td>
                    <asp:Label ID="Label12" runat="server" Text="Policy Name is required" ForeColor="#CC0000"></asp:Label></td>
            </tr>

            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="Policy Start Date"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtStartDay" runat="server" Width="175px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtStartDay_CalendarExtender" runat="server" TargetControlID="txtStartDay">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="Policy Start Date is required" ForeColor="#CC0000"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="Policy End Date"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtEndDay" runat="server" Width="175px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtEndDay_CalendarExtender" runat="server" TargetControlID="txtEndDay">
                    </asp:CalendarExtender>
                </td>
                <td>
                    <asp:Label ID="Label8" runat="server" Text="Policy End Date is required" ForeColor="#CC0000"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label9" runat="server" Text="Policy Duration"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtDuration" runat="server" Width="175px"></asp:TextBox></td>
                <td>
                    <asp:Label ID="Label10" runat="server" Text="Policy Duration is required" ForeColor="#CC0000"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    </td>
                <td>
                   <asp:Button ID="Button1" runat="server" Text="Add" OnClick="Button1_Click" Height="30px" Width="80px" /> </td>
            </tr>
        </table>
        <p style="color:red;margin-left:130px; font-weight:bold" runat="server" id="success">Add Policy on employee successfully</p>
    </div>
</asp:Content>

